Measurement of accommodation